import Layout from '@/layout/index.vue'

const employeeRouter = [
  {
    path: '/employee',
    component: Layout,
    redirect: '/employee/index',
    name: 'employee',
    meta: {
      title: '员工管理',
      icon: 'people-svg',
      roles: ['department'],
    },
    children: [
      {
        path: '/employee/index',
        component: () => import('@/views/employee/index.vue'),
        name: 'employeeList',
        meta: { title: '员工管理', icon: 'people-svg' },
        roles: ['department'],
      },
    ],
  },
]

export default employeeRouter
